
LIBNAME=libwdcap.a

CC := $(CROSSCOMPILE)gcc
AR := $(CROSSCOMPILE)ar

CFLAGS += -I../libwdbase/include -I./include 

SOURCE=$(wildcard *.c)
OBJS=$(subst .c,.o,$(SOURCE))


all:$(LIBNAME)  

$(LIBNAME): $(OBJS)
	$(AR) rcs $(LIBNAME) $(OBJS)

%.o:%.c
	$(CC) -c $(CFLAGS) $< -o $@ 

clean:
	rm *.o -f;
	rm *.a -f;

.PHONY: clean all 
